package org.linlinjava.litemall.wx.web;

import org.linlinjava.litemall.core.util.ResponseUtil;
import org.linlinjava.litemall.db.service.LitemallSystemConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author zoudu
 * @version 1.0
 * @date 2025/3/19 10:35
 */
@RestController
@RequestMapping("/wx/config")
@Validated
public class WxConfigController {

    @Autowired
    private LitemallSystemConfigService systemConfigService;
    /**
     * 获取订单配置信息
     *
     * @return 订单配置信息
     */
    @GetMapping("/express")
    public Object config() {
        Map<String, String> data = systemConfigService.listExpress();
        return ResponseUtil.ok(data);
    }
}
